package com.lqian.controller;


import com.lqian.pojo.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@Api("用户管理")
public class UserController {

    @ApiOperation(value = "用户查询列表")
    @GetMapping("/user/list")
    public String courselist() {
        return "success";
    }


    @GetMapping("/user/save")
    @ApiOperation("用户注册")
    @ApiImplicitParams( //接口参数描述
            @ApiImplicitParam(name = "user",value = "用户对象")
    )
    public String coursesave(User user) {
        return "success";
    }
}
